using an Emacs macro to do the export then the following code
will return the first 2 from the list of section types:
(let ((list '("part" "chapter" "section" "subsection" "subsubsection"
"subsubsubsection" "subsubsubsubsection
section,
subsection,
subsubsection,
subsubsubsection,
subsubsubsubsection,
subsubsubsubsubsection,
subsubsubsubsubsubsection,
subsubsubsubsubsubsubsection][sectionconversionset=myconvset]
\setuphead[chapter][sectionsegments=chapter]
\setuphead[section][sectionsegments=section]
\setuphead[subsection
to
subsubsubsubsection), you may need to define your own using
\definesectionlevels.
Best regards
Andreas
Am 2016-03-11 09:08, schrieb m...@silentumbrella.com:
Greetings,
Is it possible to have
\starttext
\startchapter
Hey a chapter!
\startsection
something.one
\startsection
someting.one.one
and normal section command. When you want a \section
for the first level change the level settings with
\definesectionlevels
[default]
[section,
subsection,
subsubsection,
subsubsubsection,
subsubsubsubsection]
and use
\starttext
\startsectionlevel[title=Section]
\startsectionlevel[title
are :
\definesection[section-1] % part
\definesection[section-2] % chapter
\definesection[section-3] % section
\definesection[section-4] % subsection
\definesection[section-5] % subsubsection
\definesection[section-6] % subsubsubsection
\definesection[section-7] % subsubsubsubsection
There's
!content]
[\v!part,
\v!chapter,
\v!section,
\v!subsection,
\v!subsubsection,
\v!subsubsubsection,
\v!subsubsubsubsection]
[\c!level=\v!subsubsubsubsection,
\c!criterium=\v!local]
Hope this helps!
Cheers,
Sietse
\stopstructurelevel
\stopstructurelevel
\stopstructurelevel
\stoptext
this uses
\definestructurelevels
[default]
[chapter,
section,
subsection,
subsubsection,
subsubsubsection,
subsubsubsubsection]
The more verbose variant is still there:
\definehead[xxsection
[content][level=section]
\starttext
\completecontent
\chapter{Level 0}
\section{Level 1}
\subsection{Level 2}
\subsubsection{Level 3}
\subsubsubsection{Level 4}
\subsubsubsubsection{Level 5}
\stoptext
Is this a bug, or I did something wrong?
--
There is no emotion; there is peace.
There is no ignorance
Hi all,
how do I get my numbers in level nine (and higher) back?
See example below please.
Did someone change module[subsub] ??
Thanks in advance,
Steffen
[2010.09.05 13:23 MKIV]
=
\usemodule[subsub]
\starttext
\definehead [LevelSeven] [subsubsubsubsection]
\definehead [LevelNine
,
subsubsection,
subsubsubsection,
subsubsubsubsection,
title,
subject,
subsubject,
subsubsubject,
subsubsubsubject,
subsubsubsubsubject]
[criterium=all]
\startsectionblockenvironment[frontpart]
\setuphead[title,subject,subsubject][incrementnumber=no]
\stopsectionblockenvironment
in the log file:
system : part,chapter,section,subsection,subsubsection,subsubsubsectio
n,subsubsubsubsection not found/processed
--
All the best,
Berend de Boer
___
If your question is of interest to others
h4 element with subsection
(@article/h4).each do |h4|
h4.swap(\\subsubsubsection{#{h4.inner_html}})
end
# replace h5 element with subsection
(@article/h5).each do |h5|
h5.swap(\\subsubsubsubsection{#{h5.inner_html}})
end
# replace precode by equivalent command in context
(@article/pre).each do
[subsectionnumber]
system : mark subsubsection defined [subsubsection]
system : mark subsubsectionnumber defined [subsubsectionnumber]
system : mark subsubsubsection defined [subsubsubsection]
system : mark subsubsubsectionnumber defined [subsubsubsectionnumber]
system : mark subsubsubsubsection defined
.swap(\\subsubsection{#{h3.inner_html}})
end
# replace h4 element with subsection
(@article/h4).each do |h4|
h4.swap(\\subsubsubsection{#{h4.inner_html}})
end
# replace h5 element with subsection
(@article/h5).each do |h5|
h5.swap(\\subsubsubsubsection{#{h5.inner_html}})
end
# replace precode
,subsubsubsubsection]
[level=subsubsubsubsection,
criterium=local]
\def\PageCommand#1{Page #1}
\setuplist
[chapter]
[before=\blank,
after=\blank,
style=bold,
pagecommand=\PageCommand]
\setuplist
[section]
[pagecommand=\PageCommand,
alternative=c]
\starttext
\TocHead{Table of Contents
: - \headtext {content}
(./programlisting.001.tuo)
system :
part,chapter,section,subsection,subsubsection,subsubsubsectio
n,subsubsubsubsection not found/processed
structure : end of sectionblock frontmatter
[2.1]
structure : begin of sectionblock bodymatter
[3.2]
structure : end
subsubsubsectionnumber defined
[subsubsubsectionnumber]
system : mark subsubsubsubsection defined [subsubsubsubsection]
system : mark subsubsubsubsectionnumber defined
[subsubsubsubsectionnu
mber]
system : mark title defined [title]
system : mark titlenumber
[subsubsubsectionnumber]
system : mark subsubsubsubsection defined [subsubsubsubsection]
system : mark subsubsubsubsectionnumber defined
[subsubsubsubsectionnu
mber]
system : mark title defined [title]
system : mark titlenumber defined [titlenumber]
system : mark subject
subsubsubsubsection defined [subsubsubsubsection]
system : mark subsubsubsubsectionnumber defined
[subsubsubsubsectionnu
mber]
system : mark title defined [title]
system : mark titlenumber defined [titlenumber]
system : mark subject defined [subject]
system : mark
={/}]
\setuplist [subsubsubsection][separator={/}]
\setuplist [subsubsubsubsection] [separator={/}]
Taco
Has no effect - tried this early on. Thanks for the suggestion. Seems
like this *should* be the answer though...
My current test file is a bit large, because I'm developing a whole
]
system : mark subsubsubsubsection defined [subsubsubsubsection]
system : mark subsubsubsubsectionnumber defined [subsubsubsubsectionnu
mber]
system : mark title defined [title]
system : mark titlenumber defined [titlenumber]
system : mark subject defined
On Sat, Sep 27, 2003 at 12:18:21PM +0200, Hans Hagen wrote:
At 07:41 27/09/2003 +0200, you wrote:
From: Simon Pepping [EMAIL PROTECTED]
P: How to define '' as a synonym of 'subsubsubsubsection' without
wrtiting
P: the same code twice?
From DocbookInContext:
%D A \type{\let
At 07:41 27/09/2003 +0200, you wrote:
From: Simon Pepping [EMAIL PROTECTED]
P: How to define '' as a synonym of 'subsubsubsubsection' without
wrtiting
P: the same code twice?
From DocbookInContext:
%D A \type{\let} for XML environments
\def\letXMLenvironment#1#2%
{\letvaluevalue
Hi all!
Is there any way to define XML command synonyms? Assume that one defined
\deifneXMLenvirnment[subsubsubsubsection]{...}{...}
How to define '' as a synonym of 'subsubsubsubsection' without wrtiting
the same code twice?
Thanks, Pawe/l
Hi Pawel
Is there any way to define XML command synonyms? Assume that one defined
\deifneXMLenvirnment[subsubsubsubsection]{...}{...}
How to define '' as a synonym of 'subsubsubsubsection' without
wrtiting
the same code twice?
Though the following does not yet
to define XML command synonyms? Assume that one defined
\deifneXMLenvirnment[subsubsubsubsection]{...}{...}
How to define '' as a synonym of 'subsubsubsubsection' without
wrtiting
the same code twice?
Though the following does not yet really work the solution must
On Thu, Sep 25, 2003 at 02:57:17PM +0200, Pawel Jackowski na Onet wrote:
Hi all!
Is there any way to define XML command synonyms? Assume that one defined
\deifneXMLenvirnment[subsubsubsubsection]{...}{...}
How to define '' as a synonym of 'subsubsubsubsection
27 matches
Mail list logo